package com.csf.create.prototype;

/**
 * TODO ADD DESCRIPTION
 * Date: 2018/9/6
 * Time: 14:46
 *
 * @author chenshf
 */
public class Message implements Cloneable {

    private String name;

    /**
     * 浅复制
     * @return
     * @throws CloneNotSupportedException
     */
    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Message{" +
                "name='" + name + '\'' +
                '}';
    }
}
